package com.edu.buservice.biz.impl;

import com.edu.buservice.biz.PermissionManger;
import com.edu.buservice.dal.model.SysPermissions;
import com.edu.buservice.dal.service.SysPermissionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @program: KQAIA
 * @description:
 * @author: 无恙
 * @create: 2025-02-09 18:39
 **/

@Component
public class PermissionMangerImpl implements PermissionManger {

	@Autowired
	private SysPermissionsService sysPermissionsService;

	//根据角色Id，获取权限信息
	public List<SysPermissions> getPermissionsByRoleId(Integer roleId) {
		return sysPermissionsService.getPermissionsByRoleId(roleId);
	}


}
